package com.heima.pri03;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class DuiXiangLiu02 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
   //对象反序列化流
        ObjectInputStream ob=new ObjectInputStream(new FileInputStream("day11\\a.txt"));
        User o = (User)ob.readObject();
        System.out.println(o);

    }
}
